package com.example.saiaadmin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.saiaadmin.dto.DTOEbSystemRole;
import com.example.saiaadmin.entry.EbSystemRole;
import com.example.saiaadmin.mapper.EbSystemRoleMapper;
import com.example.saiaadmin.service.EbSystemRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 角色信息表Service实现类
 *
 *  @author  Vagrant
 * @since 2025/01/13
 */
@Service
public class EbSystemRoleServiceImpl extends ServiceImpl<EbSystemRoleMapper, EbSystemRole> implements EbSystemRoleService {
    @Autowired
    private EbSystemRoleMapper mapper;

    @Override
    public List<DTOEbSystemRole> getList(Integer id) {
        return mapper.getList(id);
    }

    @Override
    public List<DTOEbSystemRole> gettreeList(DTOEbSystemRole role) {
        return mapper.gettreeList(role);
    }
}
